package cn.charmaine.basic.base.mapper;

import cn.charmaine.basic.base.query.BaseQuery;

import java.util.List;

public interface IBaseMapper<T> {
    //新增
    void insert(T t);

    //根据id删除
    void deleteById(Long id);

    //修改
    void update(T t);

    //基于id查询
    T selectById(Long id);

    //查询全部
    List<T> selectAll();

    //查询
    Long count(BaseQuery query);

    //分页查询+条件
    List<T> rows(BaseQuery query);

    //批量删除
    void batchDelete(List<Long> ids);
}
